package framework.jiekou;

import framework.config.RequestCode;
import framework.config.ResultCode;
import framework.database.callback.DBCallBack;
import framework.http.bean.HttpTask;
import framework.http.callback.HttpCallBack;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;

public interface Act extends ViewSetting {

	public boolean hasNet();

	public void toastNoNet();

	public RequestCode requestCode(int requestCode);

	public ResultCode resultCode(int resultCode);

	public int resultOk();

	public int resultError();

	public int resultCancel();

	public int resultDelete();

	public void onCreateAct(Bundle savedInstanceState);

	public void onStartAct();

	public void onResumeAct();

	public void onDateRecovery();

	public void onRestartAct();

	public void onPauseAct();

	public void onDateClear();

	public void onStopAct();

	public void onDestroyAct();

	public void setContentView(int layoutResID);

	public void setContentView(View view);

	public void setContentView(View view, ViewGroup.LayoutParams params);

	public void setLayout(int layoutResID);

	public AlertDialog getAlertDialog();

	public void dialogCancel(AlertDialog dialog);

	public void onClick(View view);

	public OnClickListener getOnClickListener();

	public HttpCallBack getHttpCallBack();

	public void httpTaskFinish(HttpTask task);

	public void onHttpCallBack(HttpTask task);

	public DBCallBack getDBCallBack();

	public void dbTaskFinish(int dbTaskType, Object data);

	public void onDbCallBack(int dbTaskType, Object data);

	public void openAct(Intent intent);

	public void openAct(Class newActClass);

	public void openActForResult(Class newActClass, int requestCode);

	public void openActForResult(Intent intent, int requestCode);

	public void openActForResult(Class newActClass, RequestCode code);

	public void openActForResult(Intent intent, RequestCode code);

	public void animAlpha();

	public void animScaleOpen();

	public void animScaleClose();

	public void animTranslateTopIn();

	public void animTranslateBottomIn();

	public void animTranslateRightIn();

	public void animTranslateLeftIn();

	public void closeAct();

	public void closeAct(int resultCode);

	public void closeAct(int resultCode, Intent data);

	public void closeActForResultOk();

	public void closeActForResultCanceled();

	public void closeActForResultError();

	public void closeActForResultOk(Intent data);

	public void inputHidden(EditText et);

	public void inputShow(EditText et);

	public void toast(String msg);

	public void toast(int resID);

	public void alertExit();

	public void setClick(int viewID);

	public void setClick(int viewID, View view);

	public void setClick(View view);

	public LinearLayout findLinearLayoutById(int id);

	public ListView findListViewById(int id);

	public Button findButtonById(int id);

	public ProgressBar findProgressBarById(int id);

	public ImageView findImageViewById(int id);

	public RelativeLayout findRelativeLayoutById(int id);

	public TextView findTextViewById(int id);

	public CheckBox findCheckBoxById(int id);

	public FrameLayout findFrameLayoutById(int id);

	public ImageButton findImageButtonById(int id);

	public EditText findEditTextById(int id);

	public void viewShow(int id);

	public void viewGone(int id);

	public boolean onKeyDownBackNormal(int keyCode, KeyEvent event);

	public boolean onKeyDownBackExit(int keyCode, KeyEvent event);

	public Act getAct();

	public void setAct(Act act);

	public Activity getActivity();

	public AlertDialog.Builder getAlertDialogBuilder();
}
